// using the maxsonar quick start http://www.adafruit.com
// http://www.adafruit.com/index.php?main_page=product_info&cPath=35&products_id=172

int sonarPin = 0; //pin connected to analog out on maxsonar sensor
int piezoPin = 9;
int inchesAway; 

void setup() {
  Serial.begin(9600);
  pinMode(piezoPin, OUTPUT);

}

void loop() {
  inchesAway = analogRead(sonarPin) /2;
  Serial.println(inchesAway);
}

